package com.yociyy.security.authorize;

import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configurers.ExpressionUrlAuthorizationConfigurer;

/**
 * 授权信息管理器 用于收集系统中所有 AuthorizeConfigProvider 并加载其配置
 *
 * @author: YoCiyy
 * @date: 2020/7/1
 */
public interface AuthorizeConfigManager {

	/**
	 * 自定义收集 AuthorizeConfigProvider 配置方法
	 * 
	 * @param config org.springframework.security.config.annotation.web.builders.HttpSecurity#authorizeRequests() 方法返回结果集
	 */
	void config(ExpressionUrlAuthorizationConfigurer<HttpSecurity>.ExpressionInterceptUrlRegistry config);

}
